package com.wq.babysecretary.ui.adapter.hodler;

import android.widget.ImageView;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.wq.babysecretary.R;
import com.wq.babysecretary.base.adapter.ViewHolderImpl;
import com.wq.babysecretary.model.BaBayStoryModel;

/**
 * Created by wq
 */

public class BaByStoryListHolder extends ViewHolderImpl<BaBayStoryModel> {

    private TextView mTvTitle;
    private TextView mTvBrief;
    private TextView mTvMsg;

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_baby_story;
    }

    @Override
    public void initView() {
        mTvTitle = findById(R.id.book_brief_tv_title);
        mTvBrief = findById(R.id.book_brief_source);
    }

    @Override
    public void onBind(BaBayStoryModel value, int pos) {
        //书单名
        mTvTitle.setText(value.getBookName());
        //简介
        mTvBrief.setText(value.getDesc());
    }
}
